<? $menu_name = array('','Admin Group','Admin User','Bank','Banners','Contact List','Compatible Products','Member','News','Newsletter','Order','Product Category','Product','Promotion Coupon','Shipping Rate','Transfer List','Stock Alert');?>
<ul class="menu">
<? 
$admin_menu = $this->db->getarray("SELECT * FROM admin_menu order by title ");
foreach($admin_menu as $item):	
	 if(permission($item['id'],'canview')){
	 	echo '<li><a href="'.$item['url'].'">'.$item['title'].'</a></li>';
	 } 
 endforeach; 
?>					
</ul>